package myException;

public class CustomException extends RuntimeException {
	
	public String message;
    public Throwable throwable;
	public CustomException(String message) {
		super(message);
		this.message = message;
	}
	public CustomException(Throwable throwable){
        super(throwable);
        this.throwable = throwable;
    }
	public String getMessage() {
		return message;
	}
	public void setMessage(String message) {
		this.message = message;
	}
	public Throwable getThrowable() {
		return throwable;
	}
	public void setThrowable(Throwable throwable) {
		this.throwable = throwable;
	}
	
    
	
}
